package com.sakura.util.redis;

import java.io.Serializable;
import java.util.Arrays;

/**
 * Created by apple on 2018/6/26.
 */
public class phpListenerImpl implements MessageDelegateListener {

    @Override
    public void handleMessage(Serializable message) {
        //什么都不做,只输出
        if(message == null){
            System.out.println("null");
        } else if(message.getClass().isArray()){
            System.out.println(Arrays.toString((Object[])message));
        } else{
            System.out.println("秋叶【原】php"+message.toString());
        }
    }
}
